﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleXmlParser
{
	internal class Constants
	{
		internal const string XMLNS_PATTERN = "(xmlns=\")(.)+(\")";
		internal const string XMLNS_REPLACEMENT = "";
		internal const string TAG_PATTERN = @"(?<tag>(<.+?/?>))";
		internal const string XML_FILE_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
		internal const string MESSAGE_FILE_DOESNT_EXIST = "The file you uploaded does NOT exist!";
		internal const string MESSAGE_FILE_CANNOT_BE_LOADED = "The file you specified cannot be loaded!";
		internal const string MESSAGE_XMLNS_CANNOT_BE_REMOVED = "There was a problem with removing the xmlns tag from the input file!";
		internal const string CSV_FILE = "../../CSV-Teampulse.csv";
		internal const string REGEX_COMMA_NOT_IN_QUOTES = ",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)";
		internal const string BUG = "\"Bug\"";
		internal const string STORY = "\"Story\"";
		internal const string FEATURE = "\"Feature\"";
		internal const string CSV_TEAMPULSE_FILE = "../../CSV-Teampulse.csv";
		internal const string SINGLE_QUOTE = "\"";
		internal const string QUOTE = "&quot;";
		internal const string EMPTY_STRING = "";
		internal const string RAD = "Rad";
		internal const char BACKSLASH = '\\';
		
		#region [ Tag constants ]

		internal const string TAG_STORY = "<story>";
		internal const string TAG_STORY_CLOSED = "</story>";

		internal const string TAG_STORY_COLLECTION = "<stories>";
		internal const string TAG_STORY_COLLECTION_CLOSED = "</stories>";

		internal const string TAG_BUG = "<bug>";
		internal const string TAG_BUG_CLOSED = "</bug>";

		internal const string TAG_BUG_COLLECTION = "<bugs>";
		internal const string TAG_BUG_COLLECTION_CLOSED = "</bugs>";

		#endregion [ Tag constants ]

	}
}
